//
//  GameBase.h
//  SnakeGame
//
//  Created by Hansuck Shim on 2014. 3. 9..
//  Copyright (c) 2014년 Hansuck Shim. All rights reserved.
//

#ifndef SnakeGame_GameBase_h
#define SnakeGame_GameBase_h

#ifdef __cplusplus
extern "C"
{
#endif

#define GAME_STATE_STOP     0
#define GAME_STATE_PLAY     1
#define GAME_STATE_UPDATE   2
#define GAME_STATE_NOUPDATE 3
    
    void    InitGameBase(void);
    void    TermGameBase(void);
    
    void    UpdateGameBase(void);
    void    DrawGameBase(void);
    int     IsTimeToUpdate(void);
    int     GetGameStatus(void);
    void    UpdateKeyState(void);
    void    NewFood(void);

#ifdef __cplusplus
}
#endif

#endif
